{namespace n=GeorgRinger\News\ViewHelpers}
{namespace ngoos=Ngoos\ViewHelpers}

<f:layout name="Detail.html" />
<f:section name="content">
	<f:if condition="{newsItem}">
		<f:then>
			<div class="c-title c-font-bold c-font-uppercase">
				{newsItem.title}
			</div>
			<div class="c-panel c-margin-b-30 clearfix">
				<!-- JiaThis Button BEGIN -->
				<div class="jiathis_style pull-left" style="margin-top: 6px;">
					<span class="jiathis_txt">分享到：</span>
					<a class="jiathis_button_qzone"></a>
					<a class="jiathis_button_tsina"></a>
					<a class="jiathis_button_tqq"></a>
					<a class="jiathis_button_weixin"></a>
					<a class="jiathis_button_renren"></a>
					<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
					<a class="jiathis_counter_style"></a>
				</div>
				<!-- JiaThis Button END -->
				<div class="pull-right">
					<div class="c-author">
						<a href="javascript:;"><f:translate key="LLL:fileadmin/templates/v2/plugin/news/Language/locallang.xml:author" />
							<span class="c-font-uppercase">{newsItem.author}</span>
						</a>
					</div>
					<div class="c-date">
						<f:translate key="LLL:fileadmin/templates/v2/plugin/news/Language/locallang.xml:releaseDate" />
						<span class="c-font-uppercase"><f:format.date format="{f:translate(key:'dateFormat')}">{newsItem.datetime}</f:format.date></span>
					</div>
				</div>
			</div>
			<div class="c-desc">
				<f:if condition="{newsItem.teaser}">
					<f:format.html>{newsItem.teaser}</f:format.html><br/>
				</f:if>
				<f:format.raw>{newsItem.bodytext}</f:format.raw>
			</div>

            <!-- 多说评论框 start -->
            <div class="ds-thread" data-thread-key="<f:cObject typoscriptObjectPath='domain'/>-news-{newsItem.uid}" data-title="{newsItem.title}"></div>
            <!-- 多说评论框 end -->

            <!-- 多说公共JS代码 start -->
            <script type="text/javascript">
                var duoshuoQuery = {short_name:"ngo"};
                (function() {
                    var ds = document.createElement('script');
                    ds.type = 'text/javascript';ds.async = true;
                    ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
                    ds.charset = 'UTF-8';
                    (document.getElementsByTagName('head')[0]
                    || document.getElementsByTagName('body')[0]).appendChild(ds);
                })();
            </script>
            <!-- 多说公共JS代码 end -->

			<!-- 赏一个 -->
			<script type="text/javascript">
				(function($){
					$(function(){
						var paymentContent = $('.tx-payment').clone();
						$('.tx-payment').remove();
						$('.ds-thread').before(paymentContent);
					});
				})(jQuery);
			</script>

            <f:if condition="{settings.backPid}">
				<f:link.page pageUid="{settings.backPid}" class="btn c-btn-grey-1 c-btn-uppercase c-btn-square">
					返回
				</f:link.page>
            </f:if>
            <br />

		</f:then>
		<f:else>

		</f:else>
	</f:if>
</f:section>